package com.example.simplenet;

import android.support.v4.app.Fragment;

public class MyFragment extends Fragment {
	private boolean mOnResumePopBackStack = false;

	@Override
	public void onResume() {
		if (mOnResumePopBackStack)
			getFragmentManager().popBackStack();
		mOnResumePopBackStack = false;
		super.onResume();
	}

	public void onResumePopBackStack() {
		mOnResumePopBackStack  = true;
	}
	
}
